<?Lassoscript
// Last modified 4/17/09 by Eric Landmann

// CHANGE NOTES
// 4/17/09
// Version 1.0

Include:'siteconfig.lasso';

Var:'vPage_Title'='My Profile';

Include:($svLibsPath)'page_header.inc';

// Start the Session
Include:($svLibsPath)'sessions.inc'; 
Include:($svLibsPath)'header2.inc'; 

'<div align="center">\n';

// Debugging
// Var:'svDebug' = 'Y';


// Convert action_params
Var:'vError' = (Action_Param:'Error');
Var:'vOption' = (Action_Param:'Option');

// Check if user logged in 
If: (Var:'svMemberID') != '';

	Inline: -search, -Database=$svSiteDatabase,
		-Table=$svMembersTable,
		-Username=$svSiteUsername,
		-Password=$svSitePassword,
		-Operator='eq',
		'id'=(Var:'svMemberID');
		Var:'svFirst_Name' = (Field:'First_Name');
		Var:'svLast_Name' = (Field:'Last_Name');
		Var:'svPost_Name1' = (Field:'Post_Name1');
		Var:'svPost_Name2' = (Field:'Post_Name2');
		Var:'svPost_Name3' = (Field:'Post_Name3');
		Var:'svPost_Name4' = (Field:'Post_Name4');
		Var:'svPost_Name5' = (Field:'Post_Name5');
		Var:'svPass' = (Field:'Pass');
		Var:'vMail' = (Field:'Mail');
		Var:'vFav_Crag' = (Field:'Fav_Crag');
		Var:'vAddress' = (Field:'Address');
		Var:'vCity' = (Field:'City');
		Var:'vState' = (Field:'State');
		Var:'vZip' = (Field:'Zip');
		Var:'vCountry' = (Field:'Country');
		Var:'vPhone' = (Field:'Phone');
		Var:'vFav_URL' = (Field:'Fav_URL');
		Var:'vSex' = (Field:'Sex');
		Var:'vYear_Born' = (Field:'Year_Born');
		Var:'vType' = (Field:'Type');
		Var:'vAbility' = (Field:'Ability');
		Var:'vAchieve' = (Field:'Achieve');
		Var:'vStatement' = (Field:'Statement');
		Var:'vEmail_Forum1' = (Field:'Email_Forum1');
		Var:'vEmail_Forum2' = (Field:'Email_Forum2');
		Var:'vEmail_Forum3' = (Field:'Email_Forum3');
		Var:'vEmail_Forum4' = (Field:'Email_Forum4');
		Var:'vEmail_Forum5' = (Field:'Email_Forum5');
		Var:'vEmail_Forum6' = (Field:'Email_Forum6');
		Var:'vEmail_Forum7' = (Field:'Email_Forum7');
		Var:'vEmail_Forum8' = (Field:'Email_Forum8');
		Var:'vEmail_Forum9' = (Field:'Email_Forum9');
		Var:'vEmail_Forum10' = (Field:'Email_Forum10');
		Var:'vEmail_Forum11' = (Field:'Email_Forum11');
		Var:'vEmail_Forum12' = (Field:'Email_Forum12');
		
		Include: 'includes/frm_member.inc';
		
		Session_AddVar: -Name=$svSessionName, 'svAllow';
		Var:'vEntry_Date'=(Date_Format:(Date_GetCurrentDate),-DateFormat='%Y-%m-%d %H:%M:%S');
		Var:'svAllow'='Y';
	/Inline;

// Member not logged in, include login form
Else;
	// Including Login
	Include:'includes/m_login.inc';
/If;

Include:($svLibsPath)'footer.inc';
?>
</div>
</body>
</html>